what is the difference between operator and equals method of object class in java